﻿@model Gfw.Web.Models.Account.WarrantDetailModel

@{
    ViewBag.Title = "担保详情";
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}

<fieldset>
    <legend>担保详情</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.UserLoginName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserLoginName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ToUserLoginName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ToUserLoginName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.TradeDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TradeDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.BankName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.BankName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.BankCardNo)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.BankCardNo)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.BankUserName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.BankUserName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Tel)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Tel)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Qq)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Qq)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Money)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Money)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.TransferOrWithdrawDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TransferOrWithdrawDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.AckDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AckDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.RemainDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.RemainDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.BankSerialNo)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.BankSerialNo)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Status)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Status)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.TradeAbstract)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TradeAbstract)
    </div>
</fieldset>


<p>
    @Html.ActionLink("返回", "WarrantTransferQueryIndex", new { model = ViewBag.QueryModel as Gfw.Web.Models.Account.WarrantTransferQueryViewModel}) 
    @if(Model.CurrentUserID == Model.ToUserId && Model.Status.Contains("担保进行中"))
    {
        @: | @Html.ActionLink("已转账", "WarrantTransferHasTransfer", new { userID = Model.Userid, toUserID = Model.CurrentUserID, tradeDate = Model.TradeDate, 
            status = Model.Status, current = Model.CurrentUserID})
        @: | @Html.ActionLink("退还", "WarrantTransferReturn", new { toSellerID = Model.Userid, tradeDate = Model.TradeDate })
    }

    @if(Model.CurrentUserID == Model.Userid && Model.Status.Contains("已转账"))
    {
        @: | @Html.ActionLink("已确认", "WarrantTransferAck", new { toUserID = Model.ToUserId, tradeDate = Model.TradeDate })
    }
</p>
